package com.sunedai.tiger.web.controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

/**
 * 提供控制器层的基础方法
 *
 * @author zhaolipeng
 */
public class BaseController {

  @Resource
  private HttpSession session;

  public void setValueToSession(String name, Object value){
    session.setAttribute(name, value);
  }

  public Object getValueFromSession(String name){
    return session.getAttribute(name);
  }
}
